<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Collision Checker: /home/osboxes/Documents/p3/root_comm/root/tools/commonroad-collision-checker/cpp/collision/primitive_collision_tests.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Collision Checker
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_df511e5bd85cec96854b39d5e1c27aa8.html">cpp</a></li><li class="navelem"><a class="el" href="dir_bf0f0c8865c1942e08ab5157e2c596db.html">collision</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">primitive_collision_tests.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;iostream&gt;</code><br />
<code>#include &lt;algorithm&gt;</code><br />
<code>#include &lt;array&gt;</code><br />
<code>#include &lt;math.h&gt;</code><br />
<code>#include &lt;Eigen/Dense&gt;</code><br />
<code>#include &lt;assert.h&gt;</code><br />
<code>#include &quot;<a class="el" href="shape_8h_source.html">shape.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="point_8h_source.html">point.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="rectangle__aabb_8h_source.html">rectangle_aabb.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="rectangle__obb_8h_source.html">rectangle_obb.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="sphere_8h_source.html">sphere.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="triangle_8h_source.html">triangle.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="shapegroup_8h_source.html">shapegroup.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="timevariant__collisionobject_8h_source.html">timevariant_collisionobject.h</a>&quot;</code><br />
</div>
<p><a href="primitive__collision__tests_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespacecollision"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision.html">collision</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:namespacecollision_1_1primitive__tests"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision_1_1primitive__tests.html">collision::primitive_tests</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a002b2f4894492820fe708b1b7e7c5e70"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="primitive__collision__tests_8h.html#a002b2f4894492820fe708b1b7e7c5e70">EPSILON</a>&#160;&#160;&#160;(1e-05)</td></tr>
<tr class="separator:a002b2f4894492820fe708b1b7e7c5e70"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a8506433b70803c59b4d3fa98530b0151"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision_1_1primitive__tests.html#a8506433b70803c59b4d3fa98530b0151">collision::primitive_tests::cross2D</a> (const Eigen::Vector2d &amp;u, const Eigen::Vector2d &amp;v)</td></tr>
<tr class="separator:a8506433b70803c59b4d3fa98530b0151"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a713e6933ef814707c8594d841ca1caae"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision_1_1primitive__tests.html#a713e6933ef814707c8594d841ca1caae">collision::primitive_tests::collisionDetection</a> (const Point &amp;point_first, const Point &amp;point_second)</td></tr>
<tr class="separator:a713e6933ef814707c8594d841ca1caae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae8af9801d3187a075bdd3cc30230b7d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision_1_1primitive__tests.html#aae8af9801d3187a075bdd3cc30230b7d">collision::primitive_tests::collisionDetection</a> (const Point &amp;point, const Triangle &amp;triangle)</td></tr>
<tr class="separator:aae8af9801d3187a075bdd3cc30230b7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a84dee5227a947c35dfa31ff854ca90a8"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision_1_1primitive__tests.html#a84dee5227a947c35dfa31ff854ca90a8">collision::primitive_tests::collisionDetection</a> (const Point &amp;point, const RectangleAABB &amp;aabb)</td></tr>
<tr class="separator:a84dee5227a947c35dfa31ff854ca90a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a98cab4532cc74bb834a6df58f32b06eb"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision_1_1primitive__tests.html#a98cab4532cc74bb834a6df58f32b06eb">collision::primitive_tests::collisionDetection</a> (const Point &amp;point, const RectangleOBB &amp;obb)</td></tr>
<tr class="separator:a98cab4532cc74bb834a6df58f32b06eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a183ea28516c783b4ea5f6e6a5dd8f1c8"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision_1_1primitive__tests.html#a183ea28516c783b4ea5f6e6a5dd8f1c8">collision::primitive_tests::collisionDetection</a> (const Point &amp;point, const Sphere &amp;sphere)</td></tr>
<tr class="separator:a183ea28516c783b4ea5f6e6a5dd8f1c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ac2834116d6a5b2936787d7875c4a5c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision_1_1primitive__tests.html#a3ac2834116d6a5b2936787d7875c4a5c">collision::primitive_tests::collisionDetection</a> (const RectangleAABB &amp;aabb_first, const RectangleAABB &amp;aabb_second)</td></tr>
<tr class="separator:a3ac2834116d6a5b2936787d7875c4a5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab8a5184bff6547a2709db31408ec6b65"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision_1_1primitive__tests.html#ab8a5184bff6547a2709db31408ec6b65">collision::primitive_tests::collisionDetection</a> (const RectangleAABB &amp;aabb, const RectangleOBB &amp;obb)</td></tr>
<tr class="separator:ab8a5184bff6547a2709db31408ec6b65"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2976b138a47409e7fad7113502b12c47"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision_1_1primitive__tests.html#a2976b138a47409e7fad7113502b12c47">collision::primitive_tests::collisionDetection</a> (const RectangleAABB &amp;aabb, const Sphere &amp;sphere)</td></tr>
<tr class="separator:a2976b138a47409e7fad7113502b12c47"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b4eaa3cc12769d82d432e1b253336d2"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision_1_1primitive__tests.html#a8b4eaa3cc12769d82d432e1b253336d2">collision::primitive_tests::collisionDetection</a> (const RectangleAABB &amp;aabb, const Triangle &amp;triangle)</td></tr>
<tr class="separator:a8b4eaa3cc12769d82d432e1b253336d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9443cf46f9f39fae8611a7f5328fc507"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision_1_1primitive__tests.html#a9443cf46f9f39fae8611a7f5328fc507">collision::primitive_tests::collisionDetection</a> (const RectangleOBB &amp;obb_first, const RectangleOBB &amp;obb_second)</td></tr>
<tr class="separator:a9443cf46f9f39fae8611a7f5328fc507"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2504358a6e51419d3cf9bbae2dc022eb"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision_1_1primitive__tests.html#a2504358a6e51419d3cf9bbae2dc022eb">collision::primitive_tests::collisionDetection</a> (const RectangleOBB &amp;obb, const Sphere &amp;sphere)</td></tr>
<tr class="separator:a2504358a6e51419d3cf9bbae2dc022eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7fe1e7ad0ffbd6f625838835b94f583"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision_1_1primitive__tests.html#af7fe1e7ad0ffbd6f625838835b94f583">collision::primitive_tests::collisionDetection</a> (const Sphere &amp;sphere_first, const Sphere &amp;sphere_second)</td></tr>
<tr class="separator:af7fe1e7ad0ffbd6f625838835b94f583"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d503287f5b361de9ad3d9786c11dce2"><td class="memItemLeft" align="right" valign="top">Eigen::Vector2d&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision_1_1primitive__tests.html#a2d503287f5b361de9ad3d9786c11dce2">collision::primitive_tests::closestPointOnLineSegment</a> (const Eigen::Vector2d &amp;l_a, const Eigen::Vector2d &amp;l_b, const Eigen::Vector2d &amp;pt)</td></tr>
<tr class="separator:a2d503287f5b361de9ad3d9786c11dce2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5397d015356484f41c199a3d16374537"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision_1_1primitive__tests.html#a5397d015356484f41c199a3d16374537">collision::primitive_tests::pointInsideTriangle</a> (const Triangle &amp;triangle, const Eigen::Vector2d &amp;pt)</td></tr>
<tr class="separator:a5397d015356484f41c199a3d16374537"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acfe04d37e1f70cbb599e78f655c13ac3"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision_1_1primitive__tests.html#acfe04d37e1f70cbb599e78f655c13ac3">collision::primitive_tests::collisionDetection</a> (const Sphere &amp;sphere, const Triangle &amp;triangle)</td></tr>
<tr class="separator:acfe04d37e1f70cbb599e78f655c13ac3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4cd136a5a542e61f1328d7c539cce610"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision_1_1primitive__tests.html#a4cd136a5a542e61f1328d7c539cce610">collision::primitive_tests::collisionDetection</a> (const Triangle &amp;triangle_a, const Triangle &amp;triangle_b)</td></tr>
<tr class="separator:a4cd136a5a542e61f1328d7c539cce610"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a529f9ce9397be56eb93bbb3938f0954b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision_1_1primitive__tests.html#a529f9ce9397be56eb93bbb3938f0954b">collision::primitive_tests::collisionDetection</a> (const RectangleOBB &amp;obb, const Triangle &amp;triangle)</td></tr>
<tr class="separator:a529f9ce9397be56eb93bbb3938f0954b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="a002b2f4894492820fe708b1b7e7c5e70"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define EPSILON&#160;&#160;&#160;(1e-05)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="primitive__collision__tests_8h_source.html#l00024">24</a> of file <a class="el" href="primitive__collision__tests_8h_source.html">primitive_collision_tests.h</a>.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
